package com.wjj.sixinone.common.enums;

import lombok.Getter;

@Getter
public enum RedisConstantEnum {

    BAN_IP("BAN_IP","封禁的IP"),
    USER_TOKEN("user_token:", "用户token"),
    USER_VERIFY_CODE("validatecode:", "用户验证码"),
    USER_LOGIN_COUNT("user_login_count:", "用户登录次数"),
    USER_LOGIN_FAIL_COUNT("user_login_fail_count:", "用户登录失败次数"),
    USER_LOGIN_FAIL_TIME("user_login_fail_time:", "用户登录失败时间"),
    USER_LOGIN_FAIL_IP("user_login_fail_ip:", "用户登录失败ip"),
    USER_LOGIN_FAIL_TIME_IP("user_login_fail_time_ip:", "用户登录失败时间ip"),
    USER_LOGIN_FAIL_COUNT_IP("user_login_fail_count_ip:", "用户登录失败次数ip");
    private final String key;
    private final String desc;
    RedisConstantEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }
}
